/* 质检系统样式 */

/* 状态标签样式 */
.label-purple {
    background-color: #9b59b6;
    color: #fff;
}

.label-purple:hover {
    background-color: #8e44ad;
}

/* 质检状态样式 */
.status-pending-quality {
    color: #f39c12;
    font-weight: bold;
}

.status-pending-audit {
    color: #3498db;
    font-weight: bold;
}

.status-confirmed {
    color: #27ae60;
    font-weight: bold;
}

.status-rejected {
    color: #e74c3c;
    font-weight: bold;
}

.status-rework {
    color: #9b59b6;
    font-weight: bold;
}

/* 质检结果样式 */
.quality-result-pass {
    color: #27ae60;
    font-weight: bold;
}

.quality-result-fail {
    color: #e74c3c;
    font-weight: bold;
}

.quality-result-concession {
    color: #f39c12;
    font-weight: bold;
}

/* 质检操作按钮样式 */
.btn-quality {
    background-color: #f39c12;
    border-color: #e67e22;
    color: #fff;
}

.btn-quality:hover {
    background-color: #e67e22;
    border-color: #d35400;
    color: #fff;
}

.btn-quality-detail {
    background-color: #3498db;
    border-color: #2980b9;
    color: #fff;
}

.btn-quality-detail:hover {
    background-color: #2980b9;
    border-color: #1f618d;
    color: #fff;
}

/* 质检表单样式 */
.quality-check-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.quality-check-category {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #bdc3c7;
}

.quality-check-option {
    margin-right: 15px;
}

.quality-check-option input[type="radio"] {
    margin-right: 5px;
}

/* 质检结果展示样式 */
.quality-result-display {
    margin-top: 20px;
}

.quality-result-item {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.quality-result-pass-item {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.quality-result-fail-item {
    background-color: #fadbd8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.quality-result-concession-item {
    background-color: #fef9e7;
    color: #f39c12;
    border: 1px solid #f39c12;
}

/* 不合格项目表格样式 */
.unqualified-items-table {
    margin-top: 15px;
}

.unqualified-items-table th {
    background-color: #ecf0f1;
    font-weight: bold;
}

.severity-severe {
    color: #e74c3c;
    font-weight: bold;
}

.severity-moderate {
    color: #f39c12;
    font-weight: bold;
}

.severity-minor {
    color: #3498db;
    font-weight: bold;
}

/* 质检统计样式 */
.quality-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.quality-stats-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.quality-stats-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 质检流程步骤样式 */
.quality-process-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.quality-process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.quality-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #bdc3c7;
    z-index: 1;
}

.quality-process-step.active::after {
    background-color: #3498db;
}

.quality-process-step.completed::after {
    background-color: #27ae60;
}

.quality-process-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.quality-process-step.active .quality-process-step-icon {
    background-color: #3498db;
    color: white;
}

.quality-process-step.completed .quality-process-step-icon {
    background-color: #27ae60;
    color: white;
}

.quality-process-step-label {
    font-size: 0.9em;
    color: #7f8c8d;
}

.quality-process-step.active .quality-process-step-label {
    color: #3498db;
    font-weight: bold;
}

.quality-process-step.completed .quality-process-step-label {
    color: #27ae60;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quality-process-steps {
        flex-direction: column;
    }
    
    .quality-process-step:not(:last-child)::after {
        display: none;
    }
    
    .quality-stats-number {
        font-size: 1.5em;
    }
}
